const { defineConfig } = require("@vue/cli-service");
// console.log(process.env.VUE_APP_BASE_API);
module.exports = defineConfig({
  transpileDependencies: true,
  lintOnSave: false,
  devServer: {
    proxy: {
      "/api": {
        target: "http://127.0.0.1:3009", 
        changOrigin: true, //允许跨域
        pathRewrite: {
          "/api": "",
        },
      },
      "/public": {
        target: "http://127.0.0.1:3009", 
        changOrigin: true, 
        pathRewrite: {
          "/public": "/public",
        },
      },
    },
  },
});
